from enum import Enum
# 定义枚举
class VIP(Enum):
    ZHANGSAN = 1
    LISI = 2
    WANGWU = 3
    SHABI = 4
class VIP1(Enum):
    ZHANGSAN = 1
    LISI = 2
    WANGWU = 3
    SHABI = 4
print(VIP.SHABI.value)
# 遍历枚举
for v in VIP:
    print(v)
# 枚举的比较
result = VIP.SHABI == VIP.SHABI #枚举类型只能做相等比较不能做大小比较
print(result)
t = VIP.SHABI == VIP1.SHABI #不同的枚举类虽然值相等，返回结果为False
print(t)
